package cn.cvs.dao;

import cn.cvs.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SysUserMapper {
    /**
     * 统计用户数量
     * @return
     */
    int count();

    List<SysUser> list();

    List<SysUser> findByName(String name);

    List<SysUser> findByNameAndRoleId(@Param("name") String name, @Param("roleId") int roleId);

    List<SysUser> findByNameAndRoleIdOfEntity(SysUser sysUser);

    List<SysUser> findByNameAndRoleIdOfMap(Map map);


}
